package com.oneclick.tools.applock;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class PasswordActivity extends Activity {

	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		this.setContentView(R.layout.layout_password);
		
		
	}
	
	
	public void onButtonClick(View target) {
		
		if(target.getId() == R.id.backBtn) {

			unPass();
		} else {
			pass();
		}
	}
	
	private void pass() {
		
	}
	
	private void unPass() {
		Intent intent = new Intent(Intent.ACTION_MAIN);
		intent.addCategory(Intent.CATEGORY_HOME);
		intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		
		startActivity(intent);
	}
}
